﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Special_list.aspx.cs" Inherits="manage_channel_Special_list" %>
<%@ Register Src="../../controls/PageNavigator.ascx" TagName="PageNavigator" TagPrefix="uc1" %>
<%@ Import Namespace="System.Data" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title></title>
<link href="../../sysImages/<%Response.Write(NetCMS.Config.UIConfig.CssPath());%>/css/css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.SubItem {
	margin-left:30px;
}
</style>
<script language="JavaScript" type="text/javascript" src="../../configuration/js/Prototype.js"></script>
<script language="JavaScript" type="text/javascript" src="../../configuration/js/Public.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <table id="top1" width="100%"  border="0" cellpadding="0" cellspacing="0" class="toptable">
        <tr>
          <td height="1" colspan="2"></td>
        </tr>
        <tr>
          <td width="57%" class="sysmain_navi" style="padding-left:14px;">频道专题</td>
          <td width="43%">位置导航：<a href="../main.aspx" class="list_link" target="sys_main">首页</a><img alt="" src="../../sysImages/folder/navidot.gif" border="0" /><a href="list.aspx" class="list_link" target="sys_main">频道列表</a><img alt="" src="../../sysImages/folder/navidot.gif" border="0" /><a href="Class_list.aspx?ChID=<%Response.Write(ChID); %>" class="list_link" target="sys_main">专题列表</a></td>
        </tr>
    </table>
    <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="Navitable">
      <tr>
        <td  style="padding-left:12px;"><a href="special_list.aspx?ChID=<%Response.Write(ChID); %>" class="topnavichar">专题列表</a>
        &nbsp;┋&nbsp;<a href="special_add.aspx?ChID=<%Response.Write(ChID); %>" class="topnavichar" >添加专题</a>
        &nbsp;┋&nbsp;<asp:LinkButton ID="LinkButton6" runat="server" CssClass="topnavichar" OnClick="delClass" OnClientClick="{if(confirm('警告：确定要删除专题吗?\n如果有下级专题，下级专题也将删除')){return true;}return false;}">删除</asp:LinkButton>
        &nbsp;┋&nbsp;<a href="special_manage.aspx?ChID=<%Response.Write(ChID); %>&Action=move" class="topnavichar" >专题移动</a>
<%--        &nbsp;┋&nbsp;<a href="special_manage.aspx?ChID=<%Response.Write(ChID); %>&Action=until" class="topnavichar" >专题合并</a>
--%>        &nbsp;┋&nbsp;<asp:LinkButton ID="LinkButton5" runat="server" CssClass="topnavichar" OnClick="Reset_allClass" OnClientClick="{if(confirm('警告：确认要初始化专题?\n将删除站点中的内容信息!')){return true;}return false;}">专题初始化</asp:LinkButton>
        &nbsp;┋&nbsp;<asp:LinkButton ID="LinkButton1" runat="server" CssClass="topnavichar" OnClick="Lock_allClass" OnClientClick="{if(confirm('警告：确认要锁定吗？')){return true;}return false;}">锁定</asp:LinkButton>
        &nbsp;┋&nbsp;<asp:LinkButton ID="LinkButton2" runat="server" CssClass="topnavichar" OnClick="UnLock_allClass" OnClientClick="{if(confirm('警告：确认要解锁吗？')){return true;}return false;}">解锁</asp:LinkButton>
<%--        &nbsp;┋&nbsp;<a href="class_manage.aspx?ChID=<%Response.Write(ChID); %>&Action=set" class="topnavichar" >批量设置</a>
        &nbsp;┋&nbsp;<asp:LinkButton ID="LinkButton3" runat="server" CssClass="topnavichar" OnClick="Makexml">生成XML</asp:LinkButton>
--%>        &nbsp;┋&nbsp;<asp:LinkButton ID="LinkButton4" runat="server" CssClass="topnavichar" OnClick="MakeHtml" OnClientClick="{if(confirm('警告：确定要生成吗？如果您选择的专题过多，将大大消耗系统资源，谨慎使用')){return true;}return false;}">生成静态文件</asp:LinkButton>  <input name="Checkboxc" type="checkbox" onclick="javascript:selectAll(this.form,this.checked);" />全选
        </td>
      </tr>
      </table>
      <asp:Repeater ID="DataList1" runat="server">
       <HeaderTemplate>
        </HeaderTemplate>
          <ItemTemplate>
           <%#((DataRowView)Container.DataItem)["Colum"]%>
          </ItemTemplate>
          <FooterTemplate>
          </FooterTemplate>
      </asp:Repeater>
        <div align="right" style="width:98%"><uc1:PageNavigator ID="PageNavigator1" runat="server"/></div>
    <br />
    <br />
    <table width="100%" border="0" cellpadding="8" cellspacing="0" class="copyright_bg" style="height: 76px">
       <tr>
         <td align="center"><label id="copyright" runat="server" /></td>
       </tr>
    </table>
    </form>
</body>
</html>
 <script language="javascript" type="text/javascript">
 function ajaxGetClass(id,div,str)
 {
    var gdiv =document.getElementById(div);
    if(gdiv.style.display=="")
    {
        document.getElementById(div).style.display="none";
    }
    else
    {
        document.getElementById(div).style.display="";
        var Action="ChID=<%Response.Write(ChID); %>&str="+str+"&ParentID="+id; 
        var options={ 
                          method:'get', 
                          parameters:Action, 
                          onComplete:function(transport) 
                          { 
                              var returnvalue=transport.responseText; 
                              if (returnvalue.indexOf("??")>-1) 
                                  document.getElementById(div).innerHTML=''; 
                              else 
                                  document.getElementById(div).innerHTML=returnvalue; 
                          } 
                       }; 
           new  Ajax.Request('special_list_ajax.aspx?no-cache='+Math.random(),options);
    }
 }
 
function orderAction(id,orderid)
{
	var ReturnValue='';
	ReturnValue=prompt('输入权重(数字越大，排列越靠前)：',orderid);
	if ((ReturnValue!='') && (ReturnValue!=null))
	{
	    location.href='Special_list.aspx?ChID=<%Response.Write(ChID); %>&Type=orderAction&SpecialId='+id+'&OrderId='+ReturnValue;
	}
	else
	{
	    if(ReturnValue!=null)
	    {
	        alert('输入权重');
	    }    
	}
}

</script>
